package com.ttn.student.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttn.common.core.entity.Result;
import com.ttn.common.core.entity.studentrecord.TestStudyRecord;
import com.ttn.common.core.entity.studentrecord.bo.TestStudyRecordBO;
import com.ttn.common.core.entity.studentrecord.query.UnitReportQuery;

import java.util.List;

public interface TestStudyRecordService extends IService<TestStudyRecord> {
    Result saveTestStudyRecord(TestStudyRecordBO testStudyRecordBO);

    List<TestStudyRecord> queryTestStudyRecordByUnitId(Integer unitId, Integer studentId);

    int queryTotalTestStudyRecordByUnitIdId(Integer unitId, Integer studentId);

    int queryTotalCorrectAmountByUnitIdId(Integer unitId,
                                          Integer studentId);

    List<TestStudyRecord> queryUnitReport(UnitReportQuery unitReportQuery);

    int querySumCourseUnitNumber(Integer grade, Integer studentId);

}
